package com.may.web.config;

import com.may.web.resolver.ParamFillResolver;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import java.util.List;

/**
 * @program: daimao
 * @description:
 * @author: Bobby.Ma
 * @create: 2020-09-22 10:22
 **/
@SpringBootConfiguration
public class SpringMvcConfig implements WebMvcConfigurer {
    @Autowired
    private ParamFillResolver paramFillResolver;

    @Override
    public void addArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers) {
        resolvers.add(paramFillResolver);
    }
}
